# coding: utf-8
from enum import Enum

from qfluentwidgets import StyleSheetBase, Theme, qconfig

from .setting import CSS_DIR


class StyleSheet(StyleSheetBase, Enum):
    Navigation = "navigation"
    Window = "window"
    LINE_EDIT = "line_edit"

    def path(self, theme=Theme.AUTO):
        theme = qconfig.theme if theme == Theme.AUTO else theme
        return (CSS_DIR / theme.value.lower() / f"{self.value}.css").as_posix()
